<head th:fragment="head">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=320,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="keywords" content="jtfadmin快速开发平台,java快速开发平台" th:if="${head!=null && head.keywords!=null}" th:content="${head.keywords}"/>
    <meta name="description" content="jtfadmin快速开发平台,java快速开发平台" th:if="${head!=null && head.description!=null}" th:content="${head.description}"/>
    <title th:if="${head!=null && head.title!=null}" th:text="${head.title}">jtfadmin快速开发平台</title>
    <link rel="stylesheet" th:href="@{/cms/js/bootstrap-3.4.1-dist/css/bootstrap.min.css}" href="../js/bootstrap-3.4.1-dist/css/bootstrap.min.css"/>
    <script th:src="@{/cms/js/jquery-3.5.1.min.js}" src="../js/jquery-3.5.1.min.js" type="text/javascript"></script>
    <script th:src="@{/cms/js/bootstrap-3.4.1-dist/js/bootstrap.min.js}" src="../js/bootstrap-3.4.1-dist/js/bootstrap.min.js" type="text/javascript"></script>
    <script th:src="@{/cms/js/bootstrap-3.4.1-dist/js/bootstrap-hover-dropdown.min.js}" src="../js/bootstrap-3.4.1-dist/js/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>

    <!-- js 增强 -->
    <script th:if="${head!=null && head.scriptAdd != null}" type="text/javascript" >
        [(${head.scriptAdd})]
    </script>
    <style>
        body {
            padding-top: 70px;
            padding-bottom: 50px;
        }

    </style>
    <!--css 增强 -->
    <style th:if="${head!=null && head.styleAdd != null}" type="text/css">
        [(${head.styleAdd})]
    </style>
</head>

<nav class="navbar navbar-default navbar-fixed-top "role="navigation"  th:fragment="menu">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/" th:if="${sys!=null && sys.logoUrl!=null && sys.logoUrl!=''}" th:href="@{/}">
                <img th:src="${sys.logoUrl}" style="height: 24px" src="../img/logo.png">
            </a>
            <p class="navbar-text collapse navbar-collapse" th:if="${sys!=null && sys.name!=null && sys.name!=''}">
                <a href="/" th:href="@{/}" class="navbar-link" th:text="${sys.name}">jtfadmin 快速开发平台</a>
            </p>
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">导航条</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>

        <div class="collapse navbar-collapse" id="navbar">
            <ul class="nav navbar-nav">
                <li th:each="menu : ${menus}" th:class="${menu.style}">
                    <a href="#" th:if="${menu.showChildrenMenu && menu.children!=null &&menu.children.size>0}" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"  role="button" aria-haspopup="true" aria-expanded="false">
                        <span th:text="${menu.name}">下拉菜单</span>
                    </a>
                    <ul class="dropdown-menu" th:if="${menu.showChildrenMenu}">
                        <li th:each="childMenu : ${menu.children}" th:class="${childMenu.style}">
                            <a href="#" th:text="${childMenu.name}" th:href="@{${childMenu.url}}">子菜单1</a>
                        </li>
                    </ul>
                    <a href="#" th:if="${!menu.showChildrenMenu ||  menu.children==null ||menu.children.size==0}" th:text="${menu.name}" th:href="@{${menu.url}}">菜单</a>
                </li>

            </ul>
        </div>
    </div>
</nav>


<nav class="navbar navbar-default navbar-fixed-bottom" th:fragment="foot">
    <div class="container">
        <div class="navbar-text" style="text-align: center; width: 100%">
            <span th:text="${sys.copyright}"  th:if="${sys!=null && sys.copyright != null}">Copyright © 2021 jiangtaofeng.cn</span>
            <a href="http://beian.miit.gov.cn/" target="_blank" th:if="${sys!=null && sys.recordNum != null}" th:text="${sys.recordNum}"> 豫ICP备2021010489号 </a>
        </div>
    </div>
</nav>
